<!DOCTYPE html>
{% load staticfiles %}

<head>
    <meta charset="UTF-8">
    <title>Forum | {% block title %}{% endblock %}</title>
    <link rel="stylesheet" href="{% static 'amazeui.min.css' %}">
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css">
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script src="{% static 'amazeui.min.js' %}"></script>
    <script src="{% static 'amazeui.ie8polyfill.min.js' %}"></script>
    <script src="{% static 'amazeui.widgets.helper.min.js' %}"></script>
</head>

<body οnlοad="prettyPrint()">
    <div style="margin-top: 10px;margin-bottom: 10px;">
        <div class="am-container">
            <div class="am-u-sm-12 am-u-sm-centered">

                <ul class="am-nav am-nav-pills">
                    <li class="am-active"><a href="{% url 'home' %}"><i class="fa fa-home"></i>&nbsp;首页</a></li>
                    <li><a href="{% url 'plate_list' %}"><i class="fa fa-list-ul"></i>&nbsp;帖子</a></li>
                    <li><a href="{% url 'say_list' %}"><i class="fa fa-commenting"></i>&nbsp;动态</a></li>
                    {% if request.session.is_login %}
                    <li><a href="{% url 'store_list' %}"><i class="fa fa-shopping-cart"></i>&nbsp;商店</a></li>
                    <li style="float: right;"><a href="/user/{{ request.session.key }}"><i
                                class="fa fa-user"></i>&nbsp;{{ request.session.username }}</a></li>
                    {% else %}
                    <li style="float: right;"><a href="{% url 'register' %}">注册</a></li>
                    <li style="float: right;"><a href="{% url 'login' %}">登录</a></li>
                    {% endif %}
                </ul>

            </div>
        </div>
    </div>
    <script>

    </script>
    <style type="text/css">

    </style>


    {% block content %}{% endblock %}

</body>

</html>